<?php
$this->breadcrumbs = array(
    'Contact' => array('/contactus'),
    ' - Send an email'
);
?>
<div class="box">
    <header>
        <div class="icons"><i class="icon-envelope"></i></div>
        <h5>Send an email</h5>
    </header>
    <div class="body">
        <?php
        $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
            'type' => 'horizontal',
            'clientOptions' => array(
                'validateOnSubmit' => true,
            ),
            'enableClientValidation' => true
        ));
        ?>

        <p class="note">Fields with <span class="required">*</span> are required.</p>

        <?php echo $form->errorSummary($model); ?>

        <?php echo $form->textFieldRow($model, 'email', array('size' => 60, 'maxlength' => 128, 'class' => 'span5')); ?>

        <?php echo $form->textFieldRow($model, 'subject', array('size' => 60, 'maxlength' => 128, 'class' => 'span5')); ?>

        <?php echo $form->textAreaRow($model, 'body', array('rows' => 6, 'cols' => 50, 'class' => 'span5')); ?>

        <div class="form-actions">
            <input type="submit" value="Submit" class="btn btn-primary" />
            <input type="reset" value="Reset" class="btn btn-danger" />
        </div>

        <?php $this->endWidget(); ?>
    </div>
</div>